package com.avcdata;

import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.apache.poi.ss.usermodel.Cell;
import org.apache.poi.ss.usermodel.Row;
import org.apache.poi.ss.usermodel.Sheet;

import java.io.FileInputStream;
import java.io.IOException;

public class Application {
    public static void main(String[] args) throws IOException {
        String xlsPath = "/Users/hwangchan/Desktop/test-2018年07月30日17-02-21.xls";
        FileInputStream fileIn = new FileInputStream(xlsPath);
        HSSFWorkbook wb0 = new HSSFWorkbook(fileIn);

        Sheet sht0 = wb0.getSheetAt(0);
        for (Row r : sht0) {
            for (Cell c : r) {
                System.out.println(c);
            }
        }
    }
}
